<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CGI Form Example</title>
    <style>
      body {
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        color: white;
      }
      .container {
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
        padding: 40px;
        width: 350px;
        border: 1px solid rgba(255, 255, 255, 0.18);
      }
      h1 {
        text-align: center;
        margin-bottom: 30px;
        font-size: 28px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      }
      .form-group {
        margin-bottom: 20px;
      }
      label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
      }
      input {
        width: 100%;
        padding: 12px 15px;
        border-radius: 8px;
        border: none;
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 16px;
        box-sizing: border-box;
      }
      input::placeholder {
        color: rgba(255, 255, 255, 0.6);
      }
      input:focus {
        outline: none;
        background-color: rgba(255, 255, 255, 0.3);
      }
      button {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: none;
        background-color: #ff6b6b;
        color: white;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
      }
      button:hover {
        background-color: #ff5252;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }
      .result {
        margin-top: 25px;
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        display: none;
      }
      .footer {
        text-align: center;
        margin-top: 25px;
        font-size: 14px;
        opacity: 0.8;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <h1>Account Login</h1>
      <form action="/cgi-bin/form_handler" method="POST">
        <div class="form-group">
          <label for="username">Username:</label>
          <input
            type="text"
            id="username"
            name="username"
            placeholder="Enter your username"
            required
          />
        </div>
        <div class="form-group">
          <label for="password">Password:</label>
          <input
            type="password"
            id="password"
            name="password"
            placeholder="Enter your password"
            required
          />
        </div>
        <button type="submit">Login</button>
      </form>
      <div class="footer">CGI Form Example | RFC3875 Implementation</div>
    </div>
  </body>
</html>
